package cn.zyzpp.dao;

import cn.zyzpp.entity.job.NewJob;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


//PagingAndSorting
@Repository
public interface NewJobDao extends JpaRepository<NewJob, Integer> {
    int deleteAllById(int id);
    NewJob findAllById(int id);
    List<NewJob> findAllByUid(int uid);
    Page<NewJob> findAll(Pageable pageable);
    Page<NewJob> findAllByorUse(int orUse, Pageable pageable);
    Page<NewJob> findAllByorUseAndJobClassAndJobNameLike(int orUse,String JobClass,String jobName, Pageable pageable);
    Page<NewJob> findAllByorUseAndJobNameLike(int i, String s, Pageable pageable);
}
